xen/arm: p2m: Introduce p2m_{read,write}_{,un}lock helpers
authorJulien Grall <julien.grall@arm.com>
Thu, 28 Jul 2016 14:20:11 +0000 (15:20 +0100)
committerStefano Stabellini <sstabellini@kernel.org>
Fri, 29 Jul 2016 00:41:51 +0000 (17:41 -0700)
commit01e60f9cc7e91034b409ee781d379b81f32f4c81
treeefb8e22153c32932e2e79ab7425fc4759d4bac55
parentd3a8ea2257d4c9bf1d736ade99f7689f744aca92
xen/arm: p2m: Introduce p2m_{read,write}_{,un}lock helpers

Some functions in the p2m code do not require to modify the P2M code.
Document it by introducing separate helpers to lock the p2m.

This patch does not change the lock. This will be done in a subsequent
patch.

Signed-off-by: Julien Grall <julien.grall@arm.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/arch/arm/p2m.c